package seckill.dao;

import org.apache.ibatis.annotations.Param;
import seckill.entity.SuccessKilled;

import java.util.Date;

public interface SuccessKilledDao
{
    //插入购买明细 可过滤重复
    //返回插入的行数
    int insertSuccessKilled(@Param("seckillId") long seckillId, @Param("userPhone") long userPhone,@Param("killTime") Date killTime);

    //根据ID查询SuccessKilled并携带秒杀产品对象实体
    SuccessKilled queryByIdWithSeckill(@Param("seckillId") long seckillId,@Param("userPhone") long userPhone);
}
